import {
	get,
	post,
	uploadImage,
	baseUrl
} from '@/api/request.js';


//提交回收单
export function saveOrder(data) {
	return post('/api/saveRecycle/add', data, {}, true)
}
//上传附件
export function uploadImg(file, data) {
	let finalData = {
		params: JSON.stringify({
			"table_name": data.table_name,
			'tag': 'estimate' // ope_recycle回收单附件；ope_company公司注册附件
		})
	}
	return uploadImage(file, finalData)
}
export function getImg(id) {
	return baseUrl + '/api/download/' + id;
}
